a bug in registration