Fixed #2866.