fix NPE with logger