fixed quit dialog