Fixed bug #2871