Fixed bug with area = 0