Fix crash while seeking