fix h scroll bug