Work around bizar 'IndexError: list index out of range' issue.