Fixed the references to models on  Register and Index Views