Fixed #1147.