fixes #1062