fixes #1491