fixed a bug where null was being put in the namespace when a namespace method wasnt defined