fixing edit save operation.