Fixed bugs in ScrollPanel