Fix hash independence issue.