Fix #2970

This should fix the issue