fix validation bug - this is why tests are needed! soon.