fixes #2798