Fixed jsr303 validation bugs.