correcting type on index.