fix clip extent issue #1009
Merge pull request #1018 from assefay/develop

fix clip extent issue #1009