Fixing the BRMS rule generation issue