Fixed #1169.