Fix bug in the controller for users