Fix en-passant handling for rewind