Added open xml dialog, but found a bug