fixes #2785