Fix debug level support