Fix edit modal value.

- add code to reset model value when modal update is failed / error.