Improves getExtension reliability