fixes #1739