Fix seeking calculation