fixed bug for UserController