fixed some rules errors