Fixes #491.