Correct index checking in duOption()