Fixes https://github.com/puniverse/capsule/issues/40
Much more compact fix as suggested by pron
Merge pull request #41 from circlespainter/master

Fixes https://github.com/puniverse/capsule/issues/40