Avoid writing malformed output when the positions are too large.