Fix for root path matching