fix old data sync