fix bug in scroll