fixes #1802