Fix up two scripts