fixed clear data bug