fixes #1108