Fixed an issue where source and target languages get overwritten.