prevent NPE in certain rare cases