fix generation of property rules