fixes #1170