Fixed dialog and redo focus.