Fix to cpdn temporal mean