applyFix function

Apply flips and swaps to a record.