fixed null pointer on userhandler