Fix issue of Insert Category/Tag commands on windows