Fixing bug in passing tooltip position into the chart