fix to double initialisation bug
Merge pull request #1742 from rossriley/extensions-improvements-fixes

Cheers @bobdenotter and @rossriley 

Fixes #1739