Crucial bug fix for K-VLD

This doesn't affect  the result of MRMS, but will cause problems of
stability when there are very few matches.