Fixing compatibility with 2.0. Indexes must exist withing tranaction.