fixes #2706