fix error handler being changed on each load!