Fix #346.