Fixed permission plugin
Fixed the plugin system in modules