fixes #1150