Fixed Issue#143: Wrong variable cost order