fix span overflow on task index