Fix issue in isExtension in GenericBuilder