Livonian dynasty fix