Fix traversal on nested sequences