Fixes extension origin function.
Merge pull request #1 from Pronovix/fix/origin

Fixes extension origin function.