Update packages and fix errorhandler