fixed issue with legend text