fix error when returning compile errors