improved Activities::cleanData()