Fix for accidental text node addition, multiple dialog opens