fix subprocess's output