fix undefined level emitted when .log is used