fixes #1362