fix seeking at the wrong place