Fixed #1227.