Fix #1124.