fixed registrations controller bug