Fixing problem with Dialog when changed screen orientation.