Good guess!
I'd forgotten all about that code and glossed right over it. But now it's gone and the error's gone. Thanks!