Fix a bug that the key-2 was always using the unfiltered trace while searching for the min values