fixes #1172