Apply change suggested by @siffiejoe.
Thanks @catwell for catching this!
Closes #295.