fixed bug for zero observations in a single band