fix validation.