- fixed bug in calculating perfect anti-correlation