fixes #1074