Fix end marker