fixes #1109