fix for character overlapping with dialog box boarder

fix for character overlapping with dialog box boarder