Fixed bug where index() was rendering wrong template.