fixed expand_segment rule
Merge pull request #12 from jonastinkle/expand_segment_fix

fixed expand_segment rule