Fixed width issue when opening dialog twice