Minor fixes for repositories and users controllers.