Correcting placement of text