fixed NCC stdev variable initialization