Fixing the hash problem related to patsh