fixes #1204