fixes dialog to be too far on the right