fix bug of Firefox when click navBar