Fix errorhandler dependency