fixes #1070