fix wrong extension method resolving