fix empty rules