fixes #1192