I'm a shitty developer I guess :( Fixed stupid logic error that caused empty templates.