fixed error stack trace while registration