to fix tq-edit