Once you've done the sale, the only way to fix that is with a time machine. But you can take steps to minimize the (tax) impact.
David Mellem