getExtension fix