Fix for dialog saveas assert