Fixed allocation in acfDetect