dialog bugfixed