fix bug with branch and inheriting with the source and target language being the same
fix critical bug in branching and inheriting with table of contents