fix require_self syntax (fixes #398)