Whoops, I meant to post this as a Bug, not a Patch. I'm not terribly familiar with SourceForge's tickets system, sorry.

That said, I'm attaching a patch to this as well.