registration bugfix