fix ext debug mode