trying to fix NPE

not checked with compiler