fixed a crasher on remove matches