Fix #1186