fixing fix-hash.py