by qianjun;fix scrollbar bug,makes it work better