fixed the scrambler character off by one bug