Fixing hash retrieval