[BUGFIX] Bad index for determineSiteRoot