fixes #1295