Fix offline data bug