fixes #1250