fixes #1128