fix registraion