fixed issue where recognition wouldn't loop