Default values lost in edit mode