Fix bug with registrations controller