fixed userAsMap in UserController