Fixed bug which prevented APIs from being added to plugins.