Hotfix for the dialog loop

fix infinite dialog loop introduced in
7404111f921bc7979bb81260d4b047cf3ab20947