fixes #1894