fixed bug with registrations controller