fixed for registraton error