fixed template error that resulted from the controller.