fixes #1076