fix error handler on user event