fixed bug with scroll paint