Fixes.
diff --git a/common.py b/common.py
index 7e6f98f..65e4e69 100755
--- a/common.py
+++ b/common.py
@@ -1890,6 +1890,8 @@
     >>> convert_cellname('sram_row_cap_cell_6t')
     'openram_sp_cell_cap_row'
 
+    >>> convert_cellname('openram_sp_cell_opt1a_replica')
+    'openram_sp_cell_opt1a_replica'
 
     >>> convert_cellname('libcell')
     'libcell'
@@ -1996,7 +1998,9 @@
         return SRAM_CELLS[old_cellname]
 
     sram_cell = None
-    if 's8dp_' in old_cellname:
+    if 'openram_' in old_cellname:
+        sram_cell = old_cellname
+    elif 's8dp_' in old_cellname:
         sram_cell = old_cellname.replace('s8dp_', 'sram_dp_')
     elif 's8sram16x16_' in old_cellname:
         sram_cell = old_cellname.replace('s8sram16x16_', 'sram_sp_')
@@ -2006,8 +2010,6 @@
         sram_cell = old_cellname.replace('sram_', 'openram_')
     elif 'cell_' in old_cellname and not old_cellname.startswith('libcell') and not 'latchupcell' in old_cellname:
         sram_cell = 'openram_'+old_cellname
-    elif 'openram_' in old_cellname:
-        sram_cell = old_cellname
     if sram_cell:
         if sram_cell in SRAM_CELLS:
             return SRAM_CELLS[sram_cell]