fixed the boundaries of text