fixing bug in relevance feedback