fix bug in change process or rand