Fixed two bugs.

Moved a misplaced ')'.

Use correct offset for nth on ImageDataSeq.