Made ternary map work again.
x
Merge pull request #208 from SirVer/ternary_map

Made ternary map work again.