Fix assertion fail on seek.

Issue: #214