fixed clear data helper