Fix figure show bug