Fix #1171