Fixed bug with rules inheritance