fixes #1462