Fixed delete dialog not working as expected due to doubled call