index type check fix