fixed bug with missing matches