Fix root resolution