fix errors to rules addition