fix bug, trying to load offline data more than once