fix issue where matches were being unnecessarily marked dirty