Fixed #246.