Corrected issue #171. Thanks to @redsaurus for the tip.