correct a hash key