fix a bug in isAdjacentTo