Fix rewinding code