Try to filter out redundant type directories