Fixed bug with undefined items in route pages
Fixed the code because github