Fix a crash in logs