fixes #1102