* Some chnages to trace of restriction effects.
* Fixed a minor problem of tooltip rule text generation.