Fixed a problem where the oracle type could get over written