Fix support for user defined extensions.