Sankey charts change the source/target columns

Sometimes, the source/target columns on sankeys flip-flop -->> this happens when ever I edit the chart so it messes up charting.