index check fix