Fix #1347.