Fix bug of Z close path behavior
Merge pull request #7 from abcjjy/master

Fix issue #6: Z close path behavior