Fixed bug in collecting matching information.