Fixes #276.