fix user manager functions