fixed matches problem