Fixed TypeError: removed unsupported argument ApiDebugLevel