fixes #1374