Fixed winDialog being blank issue