fixed rgistration issue