Bug fix in moving avg and std calculations