fix bug in hash key