Fixes mutliple confirm dialog when cancelling changes