fixes #1325