fixes #1987