Fix bug of process manager