Fixed #2729.