fix pair check