Fixed bug 2697.