Fixed objectid comparison bug