fix a bug in extensionPoint generation