fixes #1276