Fixed size in some oid variables. Fixed a potential bug when updating the data port.