ensure model indexes