Fix bug for missing averaged data