Added missing errorhandler