fixes Debug script