fix to badly formed callback
Merge pull request #2130 from rossriley/safe-extension-fix

fix to badly formed callback