nav: fixed problems when window's resized