Fixed #1038.