minor rule fixes for code integrity