fixes #1300