fixes #1376