fix bug for disable script