when they reached the mountain town of villach , gerard received word that the duke of austria now knew that richard traveled in his territories and vowed to arrest him in retaliation for the flag incident at acre .