fix to prevent perprocessor crash when data is strange