Fixed issue #25: there was a bug with reducing band