Fix a problem caused by remove.