Bug Fix on PopulateRegistrationFromDb