fixes bug in UserDao