bug fix in plotting_util