Fixed off-by-one scroll bug