Fixes #286. Issue was caused by a typo.
Merge pull request #291 from duncanspumpkin/fix_286

Fixes #286. Issue was caused by a typo.