fixes #1465