Small bugfix in iterative method for correlation