Fix hash fetching problems