Fix scrollBuffer usage