fix err in remove rule