fixed a bug where really large x or y values caused bad x and y limits