Fix rendering of blueprints and templates

Apparently blueprints weren't rendering at all and all templates showed up as empty. Found the bug and fixed it.