fix require_self issue