Fix #1179.