fixes #1086