Correct error on errorhandler
improve websocket