Found a bug in the leverage score derivation (and hence code)