Bug in registration