fix some rules