Fixes #1063.