modify some bugs in proccess.c