Fixes #295.