You should assert that `cues.length` is 1 before you do this, since that might also fail.