Fix #340.