fix hash key check