fix subprocess call