Fix programming misteak.

Part of issue #160, pointed out by @i2aaron.