Fix text at edge of boxes