fixes navigation issue on reload