fix subprocess