Fixed log level bug