fixed initial loading of localStorage data