fixes #1862