fix crash if try to fetch model index