bug fix in registerrecognition