fixes #1342