fixes #1562