fix regtable