correct bug in get_newfigure