fix mistakes in a couple of scripts.