Fix writer flags and remove altitudes