Fix #1177