add view fix in error handler