Fixed bug (not inverse variance weighting) in  correlation simulations.