This should resolve the uncaught exception, template errors