Fixing dialog title issue