Fixed some bugs with Sorted.areaSort()