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