Script bug fixes

Here are some fixes to stuff I noticed while trying to load the linksets.