fixed recognition bug