fixed NPE in log
fixed message