DialogService Troubleshooting

I have a trouble with multiple use of DialogService.
In fact, i have different dialog service in different composant and the composant navigate between them.
The trouble is when i use a DialogService of a component, the method 'CloseConfirmDelete' of other DialogService is executed and it execute code that i don't want to execute.
Do you know this trouble ?

Just add Dispose() method in the page where you used the dialog service
@implements IDisposable;
void IDisposable.Dispose()
DialogService.OnOpen -= OpenConfirmation;
DialogService.OnClose -= CloseConfirmation;

OK, thanks.