fix NPE in constructor