fixes #1106