fix NPE attribute