Fix log level reset