Fixed a couple of minor errors in scripts