Fix security rules to correctly insert/delete module options