fix transposed table name bug