fixes #1361