fix objectid comparison