fixed cross correlation factor bug