remove some flags