fixes #1314