Be more strict with object check.