Fixed bug in inferring neighbor processes