small bugfix in dialog demo