fix NPE when false