fixing seeking bug