fix bug when give the path to create tags