fixed issues when debug plugin isn't available