fixes #1863