Fixed bug in getAllUsers()