fixing dialog