Fix bug in #fromExtension hotfix