fix #2

fix sub_proc bug.