Fixed out-by-one error in conversion map simulation.