Change clearAll function