fix bugs breaking nom run-script check