Fixes #15: Missing a bin in histogram loops

As the title says: this should fix issue #15.