Fixed issue with getAdjacent