Fixed #2717.