Fixed bug preventing plugins to be loaded correctly