Fixed bug 2991