fixing bug in registration