Small Bugfix in DiffLiberties

Small bugfix, would miscalculate liberties for things on the edge.