scripts: fixes