Fix #978