Fixes #240.