fix error when save ( new db )