fixed bug with single token patterns