fix segment metadataquery
Merge pull request #584 from metamx/fix-segment-metadata-query

fix segment metadataquery