fixed registrations controller error