Fix #1501.