Fixed crash when digging heritage