fixing bug where relevant matching results were being dropped