fixed erroneous triggering of match event