fix the wrong type of validations of object validator