Fix type on index