Put in change from Jan 16.
Fix the problem when type-A fix horrible generate filled areas due to flipping of line order.