Fix #1162.