Fix #970