Fixed bug where it didn't render the template from a file.