Fix #1066.