fix add rule endpoint