Remove the empty blocks of the events.