more typo fixes
small fixes
workaround: delegate's attached properties not available

Now only rely on delegate.index