Fixed diagonal lines issue on main dialog.