fixes #1878