FIX: bug occuring when using a template without prerendering.