fixes the index pages so NaN doesn't show up when not logged in