fixes #1120