fixes #1316