fix when edit twice it will recommit the previous change.