fix tmp_teamplate