fix for text cutting issues