fixes #1082