Fix too many classes on one rule. Fixes #138