Good catch. I don't like this function, so I'll probably rewrite soon (it's actually issue #1 in the old repo).