bug fix to objectId