remove some invalid