fixed bug for reading navigation items for page refresh