plotting macro bug fix from mbp