markov: 64-bit fix