fix NPE at AAA.popTargetResource