Fix the problem of incorrect grammar rule caused by rule precedence.

See http://stackoverflow.com/questions/19200364/how-does-the-grammar-rule-precedence-work