Fixed bug in correlation length measurement