Fix bug with validatObject