`sqrt` means `square root`. you want `sum of weight squares`.