fix add rules