Another fix for issue #860, proper range of X and Y values now set for 2d tables