Fixed bug so items would not display on refresh of page