fix NPE init states