fix bug that navbar has opacity when refresh page position not in top