fix sqls TMs