fixed an error with new registration