fix simhash overflow