fix a small bug in printing out geometries - wrong input.