fixes #1160