fix debug level logic