Fix extensions code