fix wrong indexes in titles update