Fix #1050