Fix joinroot method