Fixed namespaces issues

All classes are defined in a global scope, so a class is called from the template, it'd be from the global scope