Real fix of tagDir functions