Fixed issue of add_polygon() putting in 0 in last row instead of 1