fixes #1351