fixes #1085