Fixes error handler on Form
Disable debug mode