fix weird scroll bug