Fixed dialog open crash