fixes #1152