compare objectids correctly for principal updates