Fix for plot data conversion