Fixes namespace printing and self-closing