fixing addFigure bug