Fixed dialog bug in MasterDetail example