Fixed #1000.