fixes #1130