fixes #1218