Fixed dialog restore on config changes