Ensure that 0, bp.dist and bp.dist, 0 are non-zero. This is the last diagonal adjacent codebase commit.