Fixed #1152.