Fixed #1010.