Change contract IDs to agreed format