fixed a scrollTop bug in firefox