fix subprocess problem