fixes #1294