index template was getting stuck