Fix seeking & resume bugs