hash: fix key slot size accuracy