Fixed minor bugs in valadation .