avoid "undefined method `namespace`" of error