Apparently my valid? method must have fixed it, because I have the right answer now.