bug fixes in temporalcorr.js