fixes #1379