Fixed bug 2286.