fix seeking bugs