fixes #1210