don't write offsets for empty objects