Bug fix in registrations controller