Fix #2976