Fixed another bug in clearAll