fixes #1124