Error reporting fix