Several corrections to object writing