Fix detailed printing of query matches (bnc#853167)
changes 1.9.5