Fixed #2967.