little bug fix on neighbor calculation