Fixed #2816.