Fixed edge case where class name is "namespace": e.g. \ns\namespace