fix bugs in process part