remove private properties before doing commit