Fix read only table error