added an assert to make sure the result of the seek is successful