Fix #1170.