Fixed adjacency list issue with edge cells