fix error in editing where blank values are created