Fixed #1159.