fix instance decision logic