Made sure labels don't exceed SVG x boundries