- fixed issue with duplicate variable assignments (thanks for pointing it out, Karsten)