Fix _plugins bugs