fixing a hash key error