fix clear data bug