[BugFix]: index out of range when the simPos is after the last variant