fixes #1099