fix insert empty objects