fix a registrations api bug