fixed bug with missing iidexes