fix bug when navigate via click button in path bar