works correctly with the new version of highcharts