Fix bug Index and Model