::valid is corrected, but ::next is still behaving incorrectly.

Issue #48