fixed bug in infrastructure_clear