fixes #1406