Fixed bug in correlator