fixes #1211