Solving a problem with namespaces. The  variable on the templates were not replaced with the real namespace.