fixes #1763