Fix #1365.