Fix text clipping bug