fixes #1055