Fixes project hierarchy for subsequent searches.