fixes #1158