Fixes #244.