fix jump in scroll template