Fix bug with some extensions