Fixed Small bug in the recognition