Fix debug info showing with debug:false