fixed conversion of ids to objectids