fix for plot