fixes #1296