prevent nil value in registrations.