fixes #1341