improve robustness of KMFSelector