Fix #1082.