fix NPE in AAA.clear()