Fix bug in process