fixes #1169