fix validation errors. #3