Fix bug of mixed rules.
Update document.