nasty BUG or hack

Since a couple of versions ago, you need to clear arrays before you use them, otherwise there can be garbage from a previous run in there.