fixes #1265