Fix #1076.