Fixed some bugs in INIT file. TODO fix rules flush on plugin activation.