fixes #1313