fixes #1292