fix measures ordering #30, closes #34