bug fix on registrations controller