Fix page reload nav bug