Fixes #898.