Bugs in doubling and in validation fixed.