fixes #1104