fix cache hash generation