fixes #1168