fix user manger bugs