typo in plugin factory