fix for NPE when newrun is called right after on