Fix off-by-one error in MassExtractor.
Fixes #5