fix an issue when using bad oid