Fixed #1050.