Bugfix and independent on update tgpath.txt