[fix] mantis #5548 (when the max is determined to be vulnerable fixed calc for min value) and fix closed vector search

Change-Id: I1ad519d6f83e2fa708ed26de332a93ff0009e461