fixes #1095