Fix error in UserProvider