Fix fallback when using multiple root
Added non regression test