corrects the case where the user adds the XSource flag on a modern code base