fix index outcome bug