Fixed #2706.