Internal avalanches and restructuring in granular media