fix erroneous quarter bucketing

fixes #569