Hopefully fixed totem rules.

See GH-107.