undefined method for hash, on map object, help with error