fix: validate class in objectCollection