fix bug about nav scrolling in firefox