Fix a regression I introduced. Fixes #276
Merge pull request #277 from samuellwn/issue276

Fix a regression I introduced. Fixes #276