fix duplicate init issue, reshow legend