Fixed small bug when creating a new tag directory