 Werth was disappointed, but remained thoroughly loyal to his soldierly code of honour, and found an outlet for his anger in renewed military activity.In 1647 differences arose between the elector and the emperor as to the allegiance due from the Bavarian troops, in which, after long hesitation, Werth, fearing that the cause of the Empire and of the Catholic religion would be ruined if the elector resumed control of the troops, attempted to take his men over the Austrian border.But they refused to follow and, escaping with great difficulty from the elector's vengeance, Werth found a refuge in Austria.