Thanks for the heads up, and for the fix. It seems to have no downsides, so I've merged it into my version, and am about to upload a new build with a credit for you in the readme.
I should really put all my mods in a public source code depot so people can submit fixes like this easily. In the future I'd be happy to integrate any other fixes people submit, when it's something like this that just does a better job at the existing functionality.