fixes #1123