Fix #1091