Fixes #291. Thanks Fuzzik!