fix some bug for object data writer