fixed the bug of closePolygon option
Merge remote-tracking branch 'origin/master'