fix the bug of the stem's order and index