Fixes dialog service instant closing modals