prevent calling run more than once; fixes #1992