Fix stack index error.[ci skip]