fix index bugs